//
//  WPCHomepagePresenter.h
//  Wallpaper.co
//
//  Created by zhou_yuepeng on 2017/9/4.
//  Copyright © 2017年 www.dahuatech.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "WPCThemesInfo.h"

typedef void(^completeCallback)(BOOL result);

@interface WPCHomepagePresenter : NSObject
@property (nonatomic, assign, readonly) NSInteger themesCount;
@property (nonatomic, assign, readonly) CGSize    thumbnailSize;
@property (nonatomic, assign, readonly) NSInteger totalPage;

- (void)attachController:(UIViewController*)controller;
- (void)refreshHomepageWithTag:(NSString*)tag page:(NSInteger)page reload:(BOOL)reload callback:(completeCallback)callback;

- (WPCThemesItem*)themesItemAtIndex:(NSInteger)index pageOut:(NSInteger*)pageOut;

- (BOOL)previewWallpaper:(NSInteger)index;

- (BOOL)showLeftSidebar;

@end
